package com.miao.im.support.tester;

import com.miao.im.common.enums.Command;

/**
 * @Auther: miaoguoxin
 * @Date: 2021/7/14 19:44
 * @Description:
 */
public class CommandConverter implements IConverter {

    @Override
    public String convert(Object filed) {
        Command byCode = Command.getByCode((Integer) filed);
        if (byCode == null){
            return "";
        }
        return  byCode.getValue();
    }
}
